package com.rongmai.db.utils;

import java.util.Map;

/**
 * @author zhenhua.sun
 * @title com.tailai.tailaishop.common.utils.enums
 * @date 17/4/20
 */
public class MapUtils {

    /**
     * 使用org.apache.commons.beanutils进行转换
     */
    public static Map<?, ?> objectToMap(Object obj) {
        if(obj == null)
            return null;

        return new org.apache.commons.beanutils.BeanMap(obj);
    }
}
